from user import models
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
    class Meta:
        model = models.UserModel
        fields = "__all__"
        # error_messages={
        #     "phone":{
        #         "unique":"手机号已存在"
        #     }
        # }
